package com.wanban.downloader.utils

object ErrorMessage {

    const val ERROR_URL_IS_NULL = "Url is null or empty!"
    const val ERROR_FINAL_URL_IS_NULL = "finalUrl is null or empty!"
    const val ERROR_SCHEMA_CANNOT_PARSE = "Cannot parse the request resource's schema!"
    const val ERROR_M3U_FORMAT = "Input does not start with the #EXTM3U header."
    const val ERROR_INPUTSTREAM_IS_NULL = "InputStream is null."
    const val ERROR_USER_CANCEL = "User cancel request."
    const val ERROR_HTTPCONNECTION_ERROR = "下载文件请求出错"
    const val ERROR_FILE_CREATE_FAIL = "下载文件创建失败！"
    const val ERROR_FILE_KEY_CREATE_FAIL = "秘钥文件创建失败！"
    const val ERROR_PARSE_URL_TIME_OUT = "解析地址超时！"
    const val ERROR_DOWNLOAD_FILE_TIME_OUT = "下载文件超时！"
    const val ERROR_DOWNLOAD_ERROR = "下载文件出错！"
    const val ERROR_PARSE_M3U8 = "M3U8解析失败！"
    const val ERROR_M3U_CONTENT_NULL = "M3U文件无有效内容！"
    const val ERROR_CREATE_LOCAL_M3U8_FILE = "本地M3U文件创建出错！"
    const val ERROR_WRITE_LOCAL_M3U8_FILE = "写入本地M3U文件出错！"
    const val ERROR_CREATE_PROXY_M3U8_FILE = "代理M3U文件创建出错！"
    const val ERROR_WRITE_PROXY_M3U8_FILE = "写入代理M3U文件出错！"
    const val ERROR_MP4_FILE_LENGTH = "MP4文件大小获取出错！"
    const val ERROR_DOWNLOAD_FILE_LENGTH = "文件下载大小异常！"
    const val ERROR_DOWNLOAD_TS_RETRY_MAX_TIMES = "ts文件多次下载失败！"

    const val ERROR_MSG_DISCONNECT_NET = "请检查您的网络链接！"
    const val ERROR_MSG_ONLY_WIFI_DOWNLOAD = "不允许流量下载！"
    const val ERROR_MSG_MAX_DOWNLOAD_TASK_COUNT = "达到下载最大数量，无法新增下载任务！"
    const val ERROR_PARSE_UNKNOWN = "解析地址出错，请稍后重试！"
    const val ERROR_DOWNLOAD_UNKNOWN = "下载异常，请稍后重试！"
}